﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010C3 RID: 4291
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEntityMoveScNotify : IMessage<SceneEntityMoveScNotify>, IMessage, IEquatable<SceneEntityMoveScNotify>, IDeepCloneable<SceneEntityMoveScNotify>, IBufferMessage
	{
		// Token: 0x1700363E RID: 13886
		// (get) Token: 0x0600BFD0 RID: 49104 RVA: 0x00206397 File Offset: 0x00204597
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEntityMoveScNotify> Parser
		{
			get
			{
				return SceneEntityMoveScNotify._parser;
			}
		}

		// Token: 0x1700363F RID: 13887
		// (get) Token: 0x0600BFD1 RID: 49105 RVA: 0x0020639E File Offset: 0x0020459E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEntityMoveScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003640 RID: 13888
		// (get) Token: 0x0600BFD2 RID: 49106 RVA: 0x002063B0 File Offset: 0x002045B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEntityMoveScNotify.Descriptor;
			}
		}

		// Token: 0x0600BFD3 RID: 49107 RVA: 0x002063B7 File Offset: 0x002045B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScNotify()
		{
		}

		// Token: 0x0600BFD4 RID: 49108 RVA: 0x002063C0 File Offset: 0x002045C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScNotify(SceneEntityMoveScNotify other) : this()
		{
			this.clientPosVersion_ = other.clientPosVersion_;
			this.entityId_ = other.entityId_;
			this.entryId_ = other.entryId_;
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BFD5 RID: 49109 RVA: 0x00206424 File Offset: 0x00204624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScNotify Clone()
		{
			return new SceneEntityMoveScNotify(this);
		}

		// Token: 0x17003641 RID: 13889
		// (get) Token: 0x0600BFD6 RID: 49110 RVA: 0x0020642C File Offset: 0x0020462C
		// (set) Token: 0x0600BFD7 RID: 49111 RVA: 0x00206434 File Offset: 0x00204634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClientPosVersion
		{
			get
			{
				return this.clientPosVersion_;
			}
			set
			{
				this.clientPosVersion_ = value;
			}
		}

		// Token: 0x17003642 RID: 13890
		// (get) Token: 0x0600BFD8 RID: 49112 RVA: 0x0020643D File Offset: 0x0020463D
		// (set) Token: 0x0600BFD9 RID: 49113 RVA: 0x00206445 File Offset: 0x00204645
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x17003643 RID: 13891
		// (get) Token: 0x0600BFDA RID: 49114 RVA: 0x0020644E File Offset: 0x0020464E
		// (set) Token: 0x0600BFDB RID: 49115 RVA: 0x00206456 File Offset: 0x00204656
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x17003644 RID: 13892
		// (get) Token: 0x0600BFDC RID: 49116 RVA: 0x0020645F File Offset: 0x0020465F
		// (set) Token: 0x0600BFDD RID: 49117 RVA: 0x00206467 File Offset: 0x00204667
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x0600BFDE RID: 49118 RVA: 0x00206470 File Offset: 0x00204670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEntityMoveScNotify);
		}

		// Token: 0x0600BFDF RID: 49119 RVA: 0x00206480 File Offset: 0x00204680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEntityMoveScNotify other)
		{
			return other != null && (other == this || (this.ClientPosVersion == other.ClientPosVersion && this.EntityId == other.EntityId && this.EntryId == other.EntryId && object.Equals(this.Motion, other.Motion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BFE0 RID: 49120 RVA: 0x002064F0 File Offset: 0x002046F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ClientPosVersion != 0U)
			{
				num ^= this.ClientPosVersion.GetHashCode();
			}
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BFE1 RID: 49121 RVA: 0x00206577 File Offset: 0x00204777
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BFE2 RID: 49122 RVA: 0x0020657F File Offset: 0x0020477F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BFE3 RID: 49123 RVA: 0x00206588 File Offset: 0x00204788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.EntityId);
			}
			if (this.motion_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Motion);
			}
			if (this.ClientPosVersion != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ClientPosVersion);
			}
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.EntryId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BFE4 RID: 49124 RVA: 0x00206618 File Offset: 0x00204818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ClientPosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClientPosVersion);
			}
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BFE5 RID: 49125 RVA: 0x002066A0 File Offset: 0x002048A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEntityMoveScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ClientPosVersion != 0U)
			{
				this.ClientPosVersion = other.ClientPosVersion;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BFE6 RID: 49126 RVA: 0x00206730 File Offset: 0x00204930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BFE7 RID: 49127 RVA: 0x0020673C File Offset: 0x0020493C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 8U)
					{
						this.EntityId = input.ReadUInt32();
						continue;
					}
					if (num == 50U)
					{
						if (this.motion_ == null)
						{
							this.Motion = new MotionInfo();
						}
						input.ReadMessage(this.Motion);
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.ClientPosVersion = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.EntryId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004D4F RID: 19791
		private static readonly MessageParser<SceneEntityMoveScNotify> _parser = new MessageParser<SceneEntityMoveScNotify>(() => new SceneEntityMoveScNotify());

		// Token: 0x04004D50 RID: 19792
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D51 RID: 19793
		public const int ClientPosVersionFieldNumber = 13;

		// Token: 0x04004D52 RID: 19794
		private uint clientPosVersion_;

		// Token: 0x04004D53 RID: 19795
		public const int EntityIdFieldNumber = 1;

		// Token: 0x04004D54 RID: 19796
		private uint entityId_;

		// Token: 0x04004D55 RID: 19797
		public const int EntryIdFieldNumber = 14;

		// Token: 0x04004D56 RID: 19798
		private uint entryId_;

		// Token: 0x04004D57 RID: 19799
		public const int MotionFieldNumber = 6;

		// Token: 0x04004D58 RID: 19800
		private MotionInfo motion_;
	}
}
